package com.eshopkeeper.service.sys;

import com.eshopkeeper.core.base.BaseService;
import com.eshopkeeper.model.sys.SysParam;
import com.eshopkeeper.provider.sys.ISysParamProvider;
import com.weibo.api.motan.config.springsupport.annotation.MotanReferer;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * @author chenshufeng
 * @Description: 参数
 * @date 2017年3月7日
 */
@Service
public class SysParamService extends BaseService<ISysParamProvider, SysParam> {

    @MotanReferer(basicReferer = "clientBasicConfig")
    public void setProvider(ISysParamProvider provider) {
        this.provider = provider;
    }
    
    @Override
    public void add(SysParam sysParam) {
    	provider.insertSysParam(sysParam);
    }

	public void updateEnable(Map<String, Object> paramMap) {
		provider.updateSysParam(paramMap);
	}
    
}
